package org.brain.tool;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

@ManagedBean(name="serverDate")
@ViewScoped
public class ServerDateBean {
	
	String date;
	
	public String FormateDate(){
		Date dd = new Date();
		String dt;
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy年MM月dd日 EEE");
		dt = sdf.format(dd);
		return dt;
	}
	
	public String getDate() {
		date = FormateDate();
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}
}
